<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
	<p:growl id="loginGrowl" for="loginGrowl" />
	<h:form id="loginForm" prependId="false">
		<p:focus context="loginForm" />
		<h:panelGrid columns="2">
			<p:outputLabel styleClass="loginlabel" for="j_username"
				value="Felhasználónév" />
			<p:inputText id="j_username" name="j_username" required="true"
				label="username" maxlength="20" />

			<p:outputLabel styleClass="loginlabel" for="j_password"
				value="Jelszó" />
			<p:password id="j_password" name="j_password" label="password"
				required="true" maxlength="20" />

			<p:outputLabel styleClass="loginlabel"
				for="j_spring_security_remember_me" value="Emlékezz rám" />
			<p:selectBooleanCheckbox id="j_spring_security_remember_me" />
		</h:panelGrid>

		<p:commandButton type="submit" id="login" ajax="false"
			update=":loginGrowl" value="Bejelentkezés"
			action="#{loginController.doLogin}" />
	</h:form>
</ui:composition>